package com.gqz.equip.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gqz.common.core.domain.R;
import com.gqz.common.core.domain.RequestForm;
import com.gqz.equip.vo.TBizcEneryEquipVo;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;


/**
 * 新能源设备信息(废弃)
 *
 * @author gqz20
 * @date 2023/02/25
 */
@RequestMapping("/t-bizc-enery-equip")
public interface TBizcEneryEquipApi {
    @PostMapping("/{id}")
    public R<List<TBizcEneryEquipVo>> getById(
            @PathVariable("id") String id);

    @PostMapping("/page")
    public R<Page<TBizcEneryEquipVo>> page(
            @RequestBody RequestForm<TBizcEneryEquipVo> requestForm);

    @PostMapping("/count")
    public R<Long> count(
            @RequestBody RequestForm<TBizcEneryEquipVo> requestForm);

    @PostMapping("/insert")
    public R<Integer> insert(
            @RequestBody List<TBizcEneryEquipVo> vos);

    @PostMapping("/update")
    public R<Integer> update(
            @RequestBody List<TBizcEneryEquipVo> vos);

    @PostMapping("/getList")
    public R<List<TBizcEneryEquipVo>> getList(
            @RequestBody RequestForm<TBizcEneryEquipVo> requestForm);

}
